import { createApp } from 'vue'
import { createPinia } from 'pinia'
// 引入 pinia-plugin-persistedstate
import persistedstate from 'pinia-plugin-persistedstate'
import App from './App.vue'

const app = createApp(App)
const pinia = createPinia()

// 注册插件
pinia.use(persistedstate)
pinia.use(({ options }) => {
  console.log('options', options)
})

app.use(pinia)
app.mount('#app')
